home *** CD-ROM | disk | FTP | other *** search
- From: connolly@convex.com (Dan Connolly)
- Subject: SGML DTD for richtext
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1993Feb5.021722.17450@news.eng.convex.com>
- Date: Fri, 5 Feb 1993 02:17:22 GMT
- Content-Type: multipart/mixed;
- boundary=mysteryboxofun
- Nntp-Posting-Host: pixel.convex.com
- Mime-Version: 1.0
- Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 139
-
- > THIS IS A MESSAGE IN 'MIME' FORMAT.
- > If you are reading this, your mail reader may not support MIME.
- > Some parts of this message will be readable as plain text.
-
- --mysteryboxofun
-
- I cooked this up last weekend. It's an SGML declaration and DTD
- for richtext as specified by the MIME RFC. There are some constructs
- in SGML that aren't in MIME richtext, like A for numeric character
- references etc.
-
- But heck... maybe somebody can use this.
-
- Dan
-
- --mysteryboxofun
- Content-Description: SGML document type delcaration subset for MIME RichText
- Content-type: text/x-sgml-DTD
-
- <!ELEMENT richtext O O ANY
- -- OMITTAG is set to NO in the decl@@ -->
-
- <!ENTITY % ISO-8559-X "ISO-8559-1 |
- ISO-8559-2 |
- ISO-8559-3 |
- ISO-8559-4 |
- ISO-8559-5 |
- ISO-8559-6 |
- ISO-8559-7 |
- ISO-8559-8 |
- ISO-8559-9" >
-
- <!ENTITY % command "Bold|Italic|Fixed|Smaller|Bigger
- |Underline|Center|FlushLeft|FlushRight
- |Indent|IndentRight|Outdent|OutdentRight
- |SamePage|Subscript|Superscript
- |Heading|Footing|%ISO-8559-X|US-ASCII
- |Excerpt|Paragraph|Signature|Comment|No-op">
- <!ELEMENT (%command) - - ANY>
- <!ELEMENT (lt|nl|np) - O EMPTY>
-
- --mysteryboxofun
- Content-Description: Example SGML document
- Content-type: text/x-sgml-document-entity
-
- <!DOCTYPE richtext SYSTEM [
- <!ENTITY body SYSTEM "part-2-id">
- ]>
- <richtext>
- &body;
- </richtext>
-
- --mysteryboxofun
- Content-Description: a richtext (MIME term:) body or (SGML term:) entity
- Content-id: part-2-id
- Content-Type: text/richtext
-
- <bold>Now</bold> is the time for <italic>all</italic>
- good men
- <smaller>(and <lt>women>)</smaller> to
- <ignoreme></ignoreme> come
-
- to the aid of their
- <nl>
- beloved <nl><nl>country. <comment> Stupid quote!
- </comment> -- the end
-
- --mysteryboxofun
- Content-Description: SGML declaration for MIME RichText
- Content-type: text/x-sgml-declaration
-
- <!SGML "ISO 8879:1986"
-
- CHARSET
- BASESET "ISO 646:1983//CHARSET
- International Reference Version (IRV)//ESC 2/5 4/0"
- DESCSET 0 9 UNUSED
- 9 2 9
- 11 2 UNUSED
- 13 1 13
- 14 18 UNUSED
- 32 95 32
- 127 1 UNUSED
- -- @@ hmm.. how do you handle all the ISO-8559 character sets? --
- BASESET "ISO Registration Number 100//CHARSET
- ECMA-94 Right Part of Latin Alphabet Nr. 1//ESC 2/13 4/1"
- DESCSET 128 32 UNUSED
- 160 95 32
- 255 1 UNUSED
-
- CAPACITY SGMLREF
- TOTALCAP 150000
- GRPCAP 150000
-
- SCOPE DOCUMENT
- SYNTAX
- SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
- 19 20 21 22 23 24 25 26 27 28 29 30 31 127 255
- BASESET "ISO 646:1983//CHARSET
- International Reference Version (IRV)//ESC 2/5 4/0"
- DESCSET 0 128 0
- FUNCTION RE 13
- RS 10
- SPACE 32
- TAB SEPCHAR 9
- NAMING LCNMSTRT ""
- UCNMSTRT ""
- LCNMCHAR ".-"
- UCNMCHAR ".-"
- NAMECASE GENERAL YES
- ENTITY NO
- DELIM GENERAL SGMLREF
- SHORTREF SGMLREF
- NAMES SGMLREF
- QUANTITY SGMLREF
- NAMELEN 40
- TAGLVL 100
- LITLEN 1024
- GRPGTCNT 150
- GRPCNT 64
-
- FEATURES
- MINIMIZE
- DATATAG NO
- OMITTAG NO
- RANK NO
- SHORTTAG NO
- LINK
- SIMPLE NO
- IMPLICIT NO
- EXPLICIT NO
- OTHER
- CONCUR NO
- SUBDOC NO
- FORMAL YES
- APPINFO NONE
- >
-
- --mysteryboxofun--
-